<?php
namespace app\shop\plug;

use app\admin\library\PowerPlug;

class AdminPower extends PowerPlug{
    public function __construct(){
        parent::__construct('shop','商店后台');
        
        $cate = new PowerPlug('cate','商品分类管理');
        $this->add($cate);

        $goods = new PowerPlug('goods','商品管理');
        $this->add($goods);

        $order = new PowerPlug('order','订单管理');
        $this->add($order);

        $member = new PowerPlug('member','会员管理');
        $this->add($member);


        $setting = new PowerPlug('setting','设置');
        

        $setting->addList([
            'base' =>'基本设置',
            'memberLevel'=>'会员等级',
            'model'=>'模型管理',
            'spec'=>'规格管理',
            'variant'=>'型号管理',
            'payway'=>'支付方式',
            'send'=>'发货方式'
        ]);

        $this->add($setting);
    }
}